Christopher Johnson wrote:
>
> I've been searching around the web on this one and I'm stumped
>
> Say I have a function that is continuous between two defined points. Which
> method should I use to pick control points to fit a cubic spline to the
> function. I've found information on the least squares method but I'm not
> entirely sure how to proceed. The function is two dimensional. 0 to 1 on
> the x axis and 0 to 1 on the y. The function plots are close to linear from
> (0,0) to (1,1) with a small amount of drift that can't be ignored. It's the
> deviation from linear that I'm interested in so i can't just assume it's
> linear. It may be that I've just stared at the problem blindly for too long
> but any help would be appreciated
Unfortunately I don't have to to investigate
this, but you can try this search:
http://www.google.com/search?hl=en&q=curve+fitting+3rd+degree+polynomial+%22cubic+spline%22
Btw.:
Are you thinking of using _one_ or _several_
cubic splines to interpolate the function ?
Tor Olav
Post a reply to this message
|